import numpy as np
arr = np.arange(0,4)
print(arr)

arr1 = np.arange(1,10,2)
print(arr1)

arr2 = np.arange(0,1,0.2)
print(arr2)

arr3 = np.arange(5,0,-1)
print(arr3)
import numpy as np

arr4 = np.linspace(2,8,num=60,endpoint=False,retstep=True)
print(arr4)
arr5 = np.linspace(1,2,num=180,endpoint=False,retstep=True)
print(arr5)
#指数区间为2-8，左闭右开，数字为5，底为2
arr6 = np.logspace(2,8,5,endpoint=False,base=2)
print(arr6)
score = np.arange(0,160,10,dtype='int')
print('成绩数组scoreP:\n',score)
height = np.linspace(1.5,2.5,11,retstep=True)
print('身高等差数组：geight:\n',height)
wheat = np.logspace(0,63,64,base=2,dtype='uint64')
print('棋盘麦粒等比数组wheat:\n',wheat)